package manong.service;

import org.springframework.web.bind.annotation.RequestMapping;

import com.github.pagehelper.PageInfo;
import manong.beans.Stu;
import manong.constant.ServerResponse;





public interface IStuService {
	   ServerResponse<String> add(String studentName, String className,Integer sno,String mark,String studentPhone,String speciality);

	    ServerResponse<String> del(Integer id);

	    ServerResponse<String> update(Integer id, String studentName,String className,Integer sno,String mark,String studentPhone,String speciality);

	    ServerResponse<Stu> find(Integer id);

	    ServerResponse<PageInfo<Stu>> findAll(Integer pageNum, Integer pageSize);

		ServerResponse<PageInfo<Stu>> findByClassRom(String Sno, Integer pageNum, Integer pageSize);
}



